package com.hue.common.utils;


/**
 * @author 姚凤桥
 */
public enum Error {
    VALIDATOR_ERROR(10001, "参数效验错误!"),
    UNKNOWN_ERROR(10002, "未知错误!"),
    EMAIL_ERROR(10003, "邮件发送太频繁，请稍后再试"),
    USERNAME_EXIST_ERROR(10004,"用户名已经存在"),
    EMAIL_EXIST_ERROR(10005,"邮箱已经存在"),
    USERNAME_PASSWORD_ERROR(10006,"用户名或密码错误"),
    REQUEST_TOO_FAST_ERROR(10007,"你的请求太快了！");

    private int code;
    private String msg;

    Error(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
